package com.weitu.hiddenDanger.controller;

import com.weitu.base.controller.BaseController;
import com.weitu.hiddenDanger.service.HDStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by fanyuting on 2017/6/12 0012.
 */
@Controller
@RequestMapping("hiddenDanger/statistics")
public class HDStatisticsController extends BaseController {
    @Autowired
    private HDStatisticsService hdStatisticsService;

    /**
     * @param request
     * @return
     */
    @ResponseBody
    @RequestMapping("statisticsByGovernProgress")
    public Object statisticsByGovernProgress(HttpServletRequest request) {
        Map<String, Object> map = new HashMap<String, Object>();
        putParametersIntoMap(map);
        return this.hdStatisticsService.statisticsByGovernProgress(map);
    }
}
